You are here: Symbol Reference > Dew Namespace > Dew.Signal Namespace > Dew.Signal.Units Namespace > Classes > SignalUtils Class > SignalUtils Methods > SignalUtils.ArYuleWalkerSpectrum Method
Dew Signal for .NET
ContentsIndexHome
PreviousUpNext
SignalUtils.ArYuleWalkerSpectrum Method

Computes a frequency spectrum with the autoregressive Yule-Walker method.

Syntax
C#
Visual Basic
public static void ArYuleWalkerSpectrum([In] TVec Data, [In] TVec aResult, int ArOrder, int ZeroPadding);

Computes a frequency spectrum from Data and places the result in aResult. ArOrder is the autoregressive order used by the Yule-Walker method and zero padding factor for the FFT is defined with the ZeroPadding parameter.

Estimate the frequency spectrum of sine signal with the Yule-Walker method. The assumed order is 4 and zero padding is set to 16.

using Dew.Math; using Dew.Math.Editors; using Dew.Math.Units; using Dew.Signal; using Dew.Signal.Units; using Dew.Math.Tee; using Dew.Signal.Tee; private void button1_Click(object sender, EventArgs e) { Vector b, X; Vector Response = new Vector(0); b = MtxExpr.Sin(MtxExpr.Ramp(300, TMtxFloatPrecision.mvDouble, 0, 2 * Math.PI * 50 / 300)); SignalUtils.ArYuleWalkerSpectrum(b, Response, 4, 32); X = MtxExpr.Ramp(Response.Length, TMtxFloatPrecision.mvDouble, 0, 1.0 / Response.Length); MtxVecTee.DrawIt(X, 20 * MtxExpr.Log10(MtxExpr.Abs(Response)),"",false); }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!